8000 fix: fix workspace status filter returning more statuses that requested by Emyrk · Pull Request #7732 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: fix workspace status filter returning more statuses that requested #7732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 5, 2023
Prev Previous commit
Next Next commit
Fix test for slow cases
  • Loading branch information
Emyrk committed May 30, 2023
commit 6fd2b21eb3f8b2538833148cf0b845f0a0034092
7 changes: 7 additions & 0 deletions coderd/workspaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -558,7 +559,13 @@ func TestWorkspaceByOwnerAndName(t *testing.T) {
})
}

// TestWorkspaceFilterAllStatus tests workspace status is correctly set given a set of conditions.
func TestWorkspaceFilterAllStatus(t *testing.T) {
t.Parallel()
if os.Getenv("DB") != "" {
t.Skip(`This test takes too long with an actual database`)
}

ctx := dbauthz.AsSystemRestricted(context.Background())
db, pubsub := dbtestutil.NewDB(t)
client := coderdtest.New(t, &coderdtest.Options{
Expand Down
0