Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Aug 10, 2024
1 parent ea3c35e commit 5112444
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions binding/go/rhino_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,14 @@ func TestMessageStack(t *testing.T) {
rhino = NewRhino("invalid access key", getTestContextPath("en", "smart_lighting"))

err := rhino.Init()
err2 := rhino.Init()

t.Logf("[err]: '%v'", err)
t.Logf("[err2]: '%v'", err2)

if len(err.Error()) > 1024 {
t.Fatalf("length of error is full: '%d'", len(err.Error()))
}

err2 := rhino.Init()
if len(err2.Error()) != len(err.Error()) {
t.Fatalf("length of 1st init '%d' does not match 2nd init '%d'", len(err.Error()), len(err2.Error()))
}
Expand Down

0 comments on commit 5112444

Please sign in to comment.