Run go fmt

This commit is contained in:
Michael Steinert
2023-09-23 10:38:09 -05:00
parent 2e7b8b76d5
commit a85a609bbe

View File

@@ -223,7 +223,7 @@ func TestPAM_ConfDir_InfoMessage(t *testing.T) {
if err != nil { if err != nil {
t.Fatalf("authenticate #error: %v", err) t.Fatalf("authenticate #error: %v", err)
} }
if infoText != "This is an info message for user " + u.Username + " on echo-service" { if infoText != "This is an info message for user "+u.Username+" on echo-service" {
t.Fatalf("Unexpected info message: %v", infoText) t.Fatalf("Unexpected info message: %v", infoText)
} }
} }
@@ -269,7 +269,7 @@ func TestPAM_ConfDir_PromptForUserName(t *testing.T) {
func TestPAM_ConfDir_WrongUserName(t *testing.T) { func TestPAM_ConfDir_WrongUserName(t *testing.T) {
c := Credentials{ c := Credentials{
User: "wronguser", User: "wronguser",
Password: "wrongsecret", Password: "wrongsecret",
} }
tx, err := StartConfDir("succeed-if-user-test", "", c, "test-services") tx, err := StartConfDir("succeed-if-user-test", "", c, "test-services")