Skip to content

Commit

Permalink
read: simplify TestSelect()
Browse files Browse the repository at this point in the history
  • Loading branch information
vmiklos committed Apr 6, 2024
1 parent e92a2b9 commit 6c1a4b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions commands/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ func TestSelect(t *testing.T) {
expectedMachine := "mymachine"
expectedService := "myservice"
expectedUser := "myuser"
expectedPassword := "mypassword"
var expectedType PasswordType = "plain"
secure := false
_, err := createPassword(&ctx, expectedMachine, expectedService, expectedUser, expectedPassword, expectedType, secure)
_, err := ctx.Database.Exec(`insert into passwords (machine, service, user, password, type) values('mymachine', 'myservice', 'myuser', 'mypassword', 'plain');`)
if err != nil {
t.Fatalf("createPassword() = %q, want nil", err)
}
Expand Down

0 comments on commit 6c1a4b7

Please sign in to comment.