mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-23 23:39:02 +01:00
Fix test for the user column so it passes on github actions
This commit is contained in:
parent
23a377e3c1
commit
5fe9515749
@ -7,7 +7,6 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"os/user"
|
||||
"path"
|
||||
"regexp"
|
||||
"runtime"
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user