Skip to content

Commit 0980c50

Browse files
committed
allow to read integer
1 parent fd756cf commit 0980c50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

it/integration_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ func TestMigrator__integration(t *testing.T) {
8989
for i := range data {
9090
m := make(map[string]interface{})
9191

92-
switch d := data[i].value.(type) {
92+
switch data[i].value.(type) {
9393
case int:
94-
m[data[i].key] = int(d)
94+
m[data[i].key] = data[i].value.(int)
9595
case string:
96-
m[data[i].key] = string(d)
96+
m[data[i].key] = data[i].value.(string)
9797
default:
9898
t.Fatal("Error: unsupported data type")
9999
}

0 commit comments

Comments
 (0)