Skip to content

Commit

Permalink
Fix test for the user column so it passes on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ddworken committed Aug 30, 2023
1 parent 23a377e commit 5fe9515
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"os"
"os/exec"
"os/user"
"path"
"regexp"
"runtime"
Expand Down Expand Up @@ -1851,9 +1850,7 @@ func TestTui(t *testing.T) {
})
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
require.Contains(t, out, " User")
u, err := user.Current()
require.NoError(t, err)
require.Contains(t, out, " "+u.Username+" ")
require.Contains(t, out, " david │")

// Assert there are no leaked connections
assertNoLeakedConnections(t)
Expand Down

0 comments on commit 5fe9515

Please sign in to comment.