tests for migration path ordering and errors

This commit is contained in:
Ian Norden
2019-03-13 11:42:30 -05:00
parent 05cb06c2d3
commit 9f8c50e3ab
227 changed files with 502 additions and 229 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// VulcanizeDB
// Copyright © 2018 Vulcanize
// Copyright © 2019 Vulcanize
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -153,9 +153,9 @@ func prepConfig() {
if !mrOK || mr == "" {
log.Fatal(name, "transformer config is missing `rank` value")
}
rank, err := strconv.Atoi(mr)
rank, err := strconv.ParseUint(mr, 10, 64)
if err != nil {
log.Fatal(name, "migration `rank` can't be converted to an integer")
log.Fatal(name, "migration `rank` can't be converted to an unsigned integer")
}
t, tOK := transformer["type"]
if !tOK {
+1 -1
View File
@@ -1,5 +1,5 @@
// VulcanizeDB
// Copyright © 2018 Vulcanize
// Copyright © 2019 Vulcanize
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+1 -1
View File
@@ -1,5 +1,5 @@
// VulcanizeDB
// Copyright © 2018 Vulcanize
// Copyright © 2019 Vulcanize
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+1 -1
View File
@@ -1,5 +1,5 @@
// VulcanizeDB
// Copyright © 2018 Vulcanize
// Copyright © 2019 Vulcanize
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+1 -1
View File
@@ -1,5 +1,5 @@
// VulcanizeDB
// Copyright © 2018 Vulcanize
// Copyright © 2019 Vulcanize
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by