Skip to content

Commit

Permalink
bump all timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
masih committed Oct 15, 2024
1 parent 071a459 commit f3bc4f5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions itests/f3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestF3_Enabled(t *testing.T) {
blocktime := 100 * time.Millisecond
e := setup(t, blocktime)

e.waitTillF3Instance(lf3.ParticipationLeaseTerm+1, 40*time.Second)
e.waitTillF3Instance(lf3.ParticipationLeaseTerm+1, 60*time.Second)
}

// Test that checks that F3 can be rebootsrapped by changing the manifest
Expand All @@ -58,7 +58,7 @@ func TestF3_Rebootstrap(t *testing.T) {
n := e.minerFullNodes[0]

newInstance := uint64(2)
e.waitTillF3Instance(newInstance, 20*time.Second)
e.waitTillF3Instance(newInstance, 60*time.Second)

prevCert, err := n.F3GetCertificate(e.testCtx, newInstance)
require.NoError(t, err)
Expand All @@ -68,7 +68,7 @@ func TestF3_Rebootstrap(t *testing.T) {
cpy.NetworkName = BaseNetworkName + "/2"
e.ms.UpdateManifest(&cpy)

newManifest := e.waitTillManifestChange(&cpy, 20*time.Second)
newManifest := e.waitTillManifestChange(&cpy, 60*time.Second)
require.True(t, newManifest.Equal(&cpy), "Expected %v but got %v", cpy, newManifest)
e.waitTillF3Rebootstrap(60 * time.Second)
e.waitTillF3Instance(prevCert.GPBFTInstance+1, 60*time.Second)
Expand All @@ -82,23 +82,23 @@ func TestF3_PauseAndRebootstrap(t *testing.T) {
e := setup(t, blocktime)

newInstance := uint64(2)
e.waitTillF3Instance(newInstance, 20*time.Second)
e.waitTillF3Instance(newInstance, 60*time.Second)

origManifest := *e.m
pausedManifest := origManifest
pausedManifest.Pause = true
e.ms.UpdateManifest(&pausedManifest)
e.waitTillF3Pauses(30 * time.Second)
e.waitTillF3Pauses(60 * time.Second)

e.ms.UpdateManifest(&origManifest)
e.waitTillF3Runs(30 * time.Second)
e.waitTillF3Runs(60 * time.Second)

cpy := *e.m
cpy.NetworkName = BaseNetworkName + "/2"
cpy.BootstrapEpoch = 25
e.ms.UpdateManifest(&cpy)

e.waitTillManifestChange(&cpy, 20*time.Second)
e.waitTillManifestChange(&cpy, 60*time.Second)
e.waitTillF3Rebootstrap(60 * time.Second)
}

Expand All @@ -116,9 +116,9 @@ func TestF3_Bootstrap(t *testing.T) {

e := setupWithStaticManifest(t, staticManif, true)
e.ms.UpdateManifest(&dynamicManif)
e.waitTillManifestChange(&dynamicManif, 20*time.Second)
e.waitTillManifestChange(&dynamicManif, 60*time.Second)
e.waitTillF3Instance(2, 60*time.Second)
e.waitTillManifestChange(staticManif, 20*time.Second)
e.waitTillManifestChange(staticManif, 60*time.Second)
e.waitTillF3Instance(2, 60*time.Second)

// Try to switch back, we should ignore the manifest update.
Expand Down

0 comments on commit f3bc4f5

Please sign in to comment.