File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -737,7 +737,7 @@ func TestAPI(t *testing.T) {
737
737
ID : "container-id" ,
738
738
FriendlyName : "container-name" ,
739
739
Running : true ,
740
- CreatedAt : time .Now (),
740
+ CreatedAt : time .Now (). Add ( - 1 * time . Minute ) ,
741
741
Labels : map [string ]string {
742
742
agentcontainers .DevcontainerLocalFolderLabel : "/home/coder/project" ,
743
743
agentcontainers .DevcontainerConfigFileLabel : "/home/coder/project/.devcontainer/devcontainer.json" ,
@@ -771,6 +771,8 @@ func TestAPI(t *testing.T) {
771
771
772
772
ctx := testutil .Context (t , testutil .WaitShort )
773
773
774
+ clk .Set (time .Now ()).MustWait (ctx )
775
+
774
776
// Simulate a file modification event to make the devcontainer dirty.
775
777
watcher .sendEventWaitNextCalled (ctx , fsnotify.Event {
776
778
Name : "/home/coder/project/.devcontainer/devcontainer.json" ,
You can’t perform that action at this time.
0 commit comments