Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
GroundWu committed Jun 12, 2024
1 parent f165ebf commit 633c41e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions route/authentic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (

func TestObUserAuth(t *testing.T) {
au := &ObUserAuth{}
assert.Equal(t, "ObUserAuth{userName:, password:}", au.String())
assert.Equal(t, "ObUserAuth{userName:, password:[invisible]}", au.String())
au = NewObUserAuth("sys", "pass")
assert.EqualValues(t, "sys", au.UserName())
assert.EqualValues(t, "pass", au.Password())
assert.Equal(t, "ObUserAuth{userName:sys, password:pass}", au.String())
assert.Equal(t, "ObUserAuth{userName:sys, password:[invisible]}", au.String())
}

0 comments on commit 633c41e

Please sign in to comment.