Skip to content

Commit

Permalink
Fix test in user store and warning in glsladmin
Browse files Browse the repository at this point in the history
  • Loading branch information
jfontan committed Jul 29, 2021
1 parent 351064c commit 6b9d6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/cmd/glsladmin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func usage() {
fmt.Println(`Usage:
glsladmin list -- list users
glsladmin add <name> [<email>] -- add new user
glsladmin passwd <name> -- change user password
`)
glsladmin passwd <name> -- change user password`)
fmt.Println()
}

func start() error {
Expand Down
3 changes: 1 addition & 2 deletions server/store/users_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package store

import (
"database/sql"
"errors"
"testing"
"time"
Expand Down Expand Up @@ -32,7 +31,7 @@ func TestUserAdd(t *testing.T) {

u, err := users.User("test")
require.Error(t, err)
require.True(t, errors.Is(err, sql.ErrNoRows))
require.True(t, errors.Is(err, ErrNotFound))
require.Equal(t, User{}, u)

err = users.Add(testUser)
Expand Down

0 comments on commit 6b9d6ad

Please sign in to comment.