We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0b002ec commit58b65a1Copy full SHA for 58b65a1
agent/agentcontainers/api_test.go
@@ -737,7 +737,7 @@ func TestAPI(t *testing.T) {
737
ID:"container-id",
738
FriendlyName:"container-name",
739
Running:true,
740
-CreatedAt:time.Now(),
+CreatedAt:time.Now().Add(-1*time.Minute),
741
Labels:map[string]string{
742
agentcontainers.DevcontainerLocalFolderLabel:"/home/coder/project",
743
agentcontainers.DevcontainerConfigFileLabel:"/home/coder/project/.devcontainer/devcontainer.json",
@@ -771,6 +771,8 @@ func TestAPI(t *testing.T) {
771
772
ctx:=testutil.Context(t,testutil.WaitShort)
773
774
+clk.Set(time.Now()).MustWait(ctx)
775
+
776
// Simulate a file modification event to make the devcontainer dirty.
777
watcher.sendEventWaitNextCalled(ctx, fsnotify.Event{
778
Name:"/home/coder/project/.devcontainer/devcontainer.json",