mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 11:55:42 +03:00
Bump again
This commit is contained in:
@@ -285,7 +285,7 @@ func TestRawExecDriver_Start_Kill_Wait(t *testing.T) {
|
||||
Name: "sleep",
|
||||
Config: map[string]interface{}{
|
||||
"command": testtask.Path(),
|
||||
"args": []string{"sleep", "5s"},
|
||||
"args": []string{"sleep", "15s"},
|
||||
},
|
||||
Resources: basicResources,
|
||||
}
|
||||
@@ -304,7 +304,7 @@ func TestRawExecDriver_Start_Kill_Wait(t *testing.T) {
|
||||
}
|
||||
|
||||
go func() {
|
||||
time.Sleep(time.Duration(testutil.TestMultiplier()*1) * time.Second)
|
||||
time.Sleep(1 * time.Second)
|
||||
err := handle.Kill()
|
||||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
@@ -317,7 +317,7 @@ func TestRawExecDriver_Start_Kill_Wait(t *testing.T) {
|
||||
if res.Successful() {
|
||||
t.Fatal("should err")
|
||||
}
|
||||
case <-time.After(3 * time.Second):
|
||||
case <-time.After(time.Duration(testutil.TestMultiplier()*3) * time.Second):
|
||||
t.Fatalf("timeout")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func TestTaskRunner_Destroy(t *testing.T) {
|
||||
|
||||
select {
|
||||
case <-tr.WaitCh():
|
||||
case <-time.After(15 * time.Second):
|
||||
case <-time.After(time.Duration(testutil.TestMultiplier()*15) * time.Second):
|
||||
t.Fatalf("timeout")
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ func TestTaskRunner_SaveRestoreState(t *testing.T) {
|
||||
defer tr2.Destroy()
|
||||
|
||||
// Destroy and wait
|
||||
time.Sleep(time.Duration(testutil.TestMultiplier()*2) * time.Second)
|
||||
time.Sleep(time.Duration(testutil.TestMultiplier()*5) * time.Second)
|
||||
if tr2.handle == nil {
|
||||
t.Fatalf("RestoreState() didn't open handle")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user