Skip to content

Commit

Permalink
skip tests in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Oct 4, 2023
1 parent b8743e0 commit fb74eb2
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ test-unit-race:
## test-swamp: Running swamp tests located in nodebuilder/tests
test-swamp:
@echo "--> Running swamp tests"
@go test ./nodebuilder/tests
@go test ./nodebuilder/tests --skip "TestHeaderSubscription|TestBlobModule|TestShrexNDFromLights|TestShrexNDFromLightsWithBadFulls|TestBridgeNodeAsBootstrapper|TestFullDiscoveryViaBootstrapper|TestFullReconstructFromFulls|TestFullReconstructFromLights|TestSyncAgainstBridge_NonEmptyChain|TestSyncAgainstBridge_EmptyChain|TestSyncStartStopLightWithBridge|TestSyncLightAgainstFull|TestSyncLightWithTrustedPeers"
.PHONY: test-swamp

## test-swamp-race: Running swamp tests with data race detector located in node/tests
Expand Down
2 changes: 1 addition & 1 deletion nodebuilder/tests/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ func TestBlobRPC(t *testing.T) {
// TestHeaderSubscription ensures that the header subscription over RPC works
// as intended and gets canceled successfully after rpc context cancellation.
func TestHeaderSubscription(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down Expand Up @@ -168,6 +167,7 @@ func TestHeaderSubscription(t *testing.T) {
}
// cancel subscription via context
subcancel()

// stop the light node and expect no outstanding subscription errors
err = light.Stop(ctx)
require.NoError(t, err)
Expand Down
1 change: 0 additions & 1 deletion nodebuilder/tests/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
)

func TestBlobModule(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), 25*time.Second)
t.Cleanup(cancel)
sw := swamp.NewSwamp(t, swamp.WithBlockTime(time.Second*1))
Expand Down
2 changes: 0 additions & 2 deletions nodebuilder/tests/nd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
)

func TestShrexNDFromLights(t *testing.T) {
t.Skip()
const (
blocks = 10
btime = time.Millisecond * 300
Expand Down Expand Up @@ -79,7 +78,6 @@ func TestShrexNDFromLights(t *testing.T) {
}

func TestShrexNDFromLightsWithBadFulls(t *testing.T) {
t.Skip()
const (
blocks = 10
btime = time.Millisecond * 300
Expand Down
2 changes: 0 additions & 2 deletions nodebuilder/tests/p2p_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Steps:
5. Check that nodes are connected to bridge
*/
func TestBridgeNodeAsBootstrapper(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down Expand Up @@ -66,7 +65,6 @@ Steps:
7. Check that full and light nodes are connected to each other
*/
func TestFullDiscoveryViaBootstrapper(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down
2 changes: 0 additions & 2 deletions nodebuilder/tests/reconstruct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ Test-Case: Full Node reconstructs blocks from each other, after unsuccessfully s
block from LN subnetworks. Analog to TestShareAvailable_DisconnectedFullNodes.
*/
func TestFullReconstructFromFulls(t *testing.T) {
t.Skip()
light.DefaultSampleAmount = 10 // s
const (
blocks = 10
Expand Down Expand Up @@ -256,7 +255,6 @@ Steps:
9. Check that the FN can retrieve shares from 1 to 20 blocks
*/
func TestFullReconstructFromLights(t *testing.T) {
t.Skip()
eds.RetrieveQuadrantTimeout = time.Millisecond * 100
light.DefaultSampleAmount = 20
const (
Expand Down
5 changes: 0 additions & 5 deletions nodebuilder/tests/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Full node:
8. Wait for FN DASer to catch up to network head
*/
func TestSyncAgainstBridge_NonEmptyChain(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down Expand Up @@ -136,7 +135,6 @@ Full node:
8. Wait for FN DASer to catch up to network head
*/
func TestSyncAgainstBridge_EmptyChain(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down Expand Up @@ -213,7 +211,6 @@ Steps:
9. Check LN is synced to height 40
*/
func TestSyncStartStopLightWithBridge(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
defer cancel()

Expand Down Expand Up @@ -283,7 +280,6 @@ Steps:
10. Check LN is synced to network head
*/
func TestSyncLightAgainstFull(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down Expand Up @@ -363,7 +359,6 @@ Steps:
9. Check LN is synced to network head.
*/
func TestSyncLightWithTrustedPeers(t *testing.T) {
t.Skip()
ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout)
t.Cleanup(cancel)

Expand Down

0 comments on commit fb74eb2

Please sign in to comment.