diff --git a/cli/stat_test.go b/cli/stat_test.go index f955ccdb60e79..d92574e339b89 100644 --- a/cli/stat_test.go +++ b/cli/stat_test.go @@ -85,8 +85,6 @@ func TestStatCPUCmd(t *testing.T) { t.Run("JSON", func(t *testing.T) { t.Parallel() - t.Skip("https://github.com/coder/coder/issues/8091") - ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort) t.Cleanup(cancel) inv, _ := clitest.New(t, "stat", "cpu", "--output=json") @@ -111,7 +109,7 @@ func TestStatMemCmd(t *testing.T) { t.Parallel() ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort) t.Cleanup(cancel) - inv, _ := clitest.New(t, "stat", "mem", "--output=text") + inv, _ := clitest.New(t, "stat", "mem", "--output=text", "--host") buf := new(bytes.Buffer) inv.Stdout = buf err := inv.WithContext(ctx).Run() @@ -124,7 +122,7 @@ func TestStatMemCmd(t *testing.T) { t.Parallel() ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort) t.Cleanup(cancel) - inv, _ := clitest.New(t, "stat", "mem", "--output=json") + inv, _ := clitest.New(t, "stat", "mem", "--output=json", "--host") buf := new(bytes.Buffer) inv.Stdout = buf err := inv.WithContext(ctx).Run()