Skip to content

Commit 5112444

Browse files
committed
fix
1 parent ea3c35e commit 5112444

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

binding/go/rhino_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,14 @@ func TestMessageStack(t *testing.T) {
283283
rhino = NewRhino("invalid access key", getTestContextPath("en", "smart_lighting"))
284284

285285
err := rhino.Init()
286+
err2 := rhino.Init()
286287

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

290291
if len(err.Error()) > 1024 {
291292
t.Fatalf("length of error is full: '%d'", len(err.Error()))
292293
}
293-
294-
err2 := rhino.Init()
295294
if len(err2.Error()) != len(err.Error()) {
296295
t.Fatalf("length of 1st init '%d' does not match 2nd init '%d'", len(err.Error()), len(err2.Error()))
297296
}

0 commit comments

Comments
 (0)