mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: update to coder/quartz v0.2.0 (#18007)
Upgrade to coder/quartz v0.2.0 including fixing up a minor API breaking change.
This commit is contained in:
@ -257,7 +257,7 @@ func TestAPI(t *testing.T) {
|
||||
|
||||
// Make sure the ticker function has been registered
|
||||
// before advancing the clock.
|
||||
tickerTrap.MustWait(ctx).Release()
|
||||
tickerTrap.MustWait(ctx).MustRelease(ctx)
|
||||
tickerTrap.Close()
|
||||
|
||||
// Initial request returns the initial data.
|
||||
@ -432,7 +432,7 @@ func TestAPI(t *testing.T) {
|
||||
|
||||
// Make sure the ticker function has been registered
|
||||
// before advancing the clock.
|
||||
tickerTrap.MustWait(ctx).Release()
|
||||
tickerTrap.MustWait(ctx).MustRelease(ctx)
|
||||
tickerTrap.Close()
|
||||
|
||||
for i := range tt.wantStatus {
|
||||
@ -486,7 +486,7 @@ func TestAPI(t *testing.T) {
|
||||
nowRecreateSuccessTrap.Close()
|
||||
// The timestamp for the error will be stored, which gives
|
||||
// us a good anchor point to know when to do our request.
|
||||
nowRecreateErrorTrap.MustWait(ctx).Release()
|
||||
nowRecreateErrorTrap.MustWait(ctx).MustRelease(ctx)
|
||||
nowRecreateErrorTrap.Close()
|
||||
|
||||
// Advance the clock to run the devcontainer state update routine.
|
||||
@ -507,7 +507,7 @@ func TestAPI(t *testing.T) {
|
||||
}
|
||||
|
||||
// Ensure the devcontainer ends up in success state.
|
||||
nowRecreateSuccessTrap.MustWait(ctx).Release()
|
||||
nowRecreateSuccessTrap.MustWait(ctx).MustRelease(ctx)
|
||||
nowRecreateSuccessTrap.Close()
|
||||
|
||||
// Advance the clock to run the devcontainer state update routine.
|
||||
@ -911,7 +911,7 @@ func TestAPI(t *testing.T) {
|
||||
|
||||
// Make sure the ticker function has been registered
|
||||
// before advancing any use of mClock.Advance.
|
||||
tickerTrap.MustWait(ctx).Release()
|
||||
tickerTrap.MustWait(ctx).MustRelease(ctx)
|
||||
tickerTrap.Close()
|
||||
|
||||
// Make sure the start loop has been called.
|
||||
@ -1007,7 +1007,7 @@ func TestAPI(t *testing.T) {
|
||||
|
||||
// Make sure the ticker function has been registered
|
||||
// before advancing any use of mClock.Advance.
|
||||
tickerTrap.MustWait(ctx).Release()
|
||||
tickerTrap.MustWait(ctx).MustRelease(ctx)
|
||||
tickerTrap.Close()
|
||||
|
||||
// Call the list endpoint first to ensure config files are
|
||||
|
Reference in New Issue
Block a user