Skip to content

Commit c8e491a

Browse files
committed
fix failed test
Signed-off-by: kpango <[email protected]>
1 parent 0140f8c commit c8e491a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glg_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3917,7 +3917,7 @@ func TestGlg_EnableJSON(t *testing.T) {
39173917
if dec.Level != INFO.String() {
39183918
t.Error("invalid Level")
39193919
}
3920-
if i, ok := dec.Detail.([]interface{}); !ok || i[0].(string) != txt {
3920+
if i, ok := dec.Detail.(interface{}); !ok || i.(string) != txt {
39213921
t.Error("invalid json")
39223922
}
39233923
}

0 commit comments

Comments
 (0)