Disable waku test

This commit is contained in:
Andrea Maria Piana 2023-11-01 15:47:50 +00:00
parent a89a386c82
commit d3558d8e09
No known key found for this signature in database
3 changed files with 6 additions and 10 deletions

View File

@ -314,13 +314,11 @@ test: test-unit ##@tests Run basic, short tests during development
test-unit: export BUILD_TAGS ?=
# Ensure 'waku' and 'wakuv2' tests are executed first to reduce the impact of flaky tests.
# Otherwise, the entire target might fail at the end, making re-runs time-consuming.
test-unit: export UNIT_TEST_PACKAGES ?= $(shell go list ./... | grep -E '/waku(/.*|$$)|/wakuv2(/.*|$$)') \
$(shell go list ./... | \
test-unit: export UNIT_TEST_PACKAGES ?= $(shell go list ./... | \
grep -v /vendor | \
grep -v /t/e2e | \
grep -v /t/benchmarks | \
grep -v /transactions/fake | \
grep -E -v '/waku(/.*|$$)' | \
grep -E -v '/wakuv2(/.*|$$)')
test-unit: ##@tests Run unit and integration tests
./_assets/scripts/run_unit_tests.sh

View File

@ -752,6 +752,10 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityWithAdminPe
func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityAsMemberWithMemberAndAdminPermission() {
community, _ := s.createCommunity()
waitOnCommunityPermissionCreated := waitOnCommunitiesEvent(s.owner, func(sub *communities.Subscription) bool {
return sub.Community.HasTokenPermissions()
})
// setup become member permission
permissionRequestMember := requests.CreateCommunityTokenPermission{
CommunityID: community.ID(),
@ -770,10 +774,6 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityAsMemberWit
s.Require().NoError(err)
s.Require().Len(response.Communities(), 1)
waitOnCommunityPermissionCreated := waitOnCommunitiesEvent(s.owner, func(sub *communities.Subscription) bool {
return sub.Community.HasTokenPermissions()
})
err = <-waitOnCommunityPermissionCreated
s.Require().NoError(err)

View File

@ -221,9 +221,7 @@ func TestWakuV2Filter(t *testing.T) {
}
return nil
}, options)
// At least 3 peers should have been discovered
require.GreaterOrEqual(t, w.PeerCount(), 3)
require.NoError(t, err)
filter := &common.Filter{
Messages: common.NewMemoryMessageStore(),