Skip to content

Commit

Permalink
allow to read integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-slava committed May 28, 2020
1 parent fd756cf commit 0980c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions it/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ func TestMigrator__integration(t *testing.T) {
for i := range data {
m := make(map[string]interface{})

switch d := data[i].value.(type) {
switch data[i].value.(type) {
case int:
m[data[i].key] = int(d)
m[data[i].key] = data[i].value.(int)
case string:
m[data[i].key] = string(d)
m[data[i].key] = data[i].value.(string)
default:
t.Fatal("Error: unsupported data type")
}
Expand Down

0 comments on commit 0980c50

Please sign in to comment.