mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli/ssh): implement wait options and deprecate no-wait (#7894)
Fixes #7768 Refs #7893
This commit is contained in:
@@ -140,7 +140,7 @@ func TestAgent_StartupTimeout(t *testing.T) {
|
||||
},
|
||||
FetchInterval: time.Millisecond,
|
||||
WarnInterval: time.Millisecond,
|
||||
NoWait: false,
|
||||
Wait: true,
|
||||
})
|
||||
return err
|
||||
},
|
||||
@@ -199,7 +199,7 @@ func TestAgent_StartErrorExit(t *testing.T) {
|
||||
},
|
||||
FetchInterval: time.Millisecond,
|
||||
WarnInterval: 60 * time.Second,
|
||||
NoWait: false,
|
||||
Wait: true,
|
||||
})
|
||||
return err
|
||||
},
|
||||
@@ -255,7 +255,7 @@ func TestAgent_NoWait(t *testing.T) {
|
||||
},
|
||||
FetchInterval: time.Millisecond,
|
||||
WarnInterval: time.Second,
|
||||
NoWait: true,
|
||||
Wait: false,
|
||||
})
|
||||
return err
|
||||
},
|
||||
@@ -325,7 +325,7 @@ func TestAgent_StartupScriptBehaviorNonBlocking(t *testing.T) {
|
||||
},
|
||||
FetchInterval: time.Millisecond,
|
||||
WarnInterval: time.Second,
|
||||
NoWait: false,
|
||||
Wait: true,
|
||||
})
|
||||
return err
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user