Skip to content

Commit

Permalink
TestVMUpgrades: extend timeout and stop ticker (#554)
Browse files Browse the repository at this point in the history
* TestVMUpgrades: extend timeout and stop ticker

* other instance
  • Loading branch information
darioush authored May 17, 2024
1 parent 40cd518 commit f4aa91c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugin/evm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,10 @@ func TestVMUpgrades(t *testing.T) {
}

go shutdownFunc()
shutdownTimeout := 50 * time.Millisecond
shutdownTimeout := 250 * time.Millisecond
ticker := time.NewTicker(shutdownTimeout)
defer ticker.Stop()

select {
case <-ticker.C:
t.Fatalf("VM shutdown took longer than timeout: %v", shutdownTimeout)
Expand Down Expand Up @@ -3427,8 +3429,10 @@ func TestConfigureLogLevel(t *testing.T) {
}
go shutdownFunc()

shutdownTimeout := 50 * time.Millisecond
shutdownTimeout := 250 * time.Millisecond
ticker := time.NewTicker(shutdownTimeout)
defer ticker.Stop()

select {
case <-ticker.C:
t.Fatalf("VM shutdown took longer than timeout: %v", shutdownTimeout)
Expand Down

0 comments on commit f4aa91c

Please sign in to comment.