Skip to content

Commit

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

* other instance
  • Loading branch information
darioush committed May 17, 2024
1 parent d3c6ac2 commit 924e6b7
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 @@ -316,8 +316,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 @@ -2026,8 +2028,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 924e6b7

Please sign in to comment.