Skip to content

Commit

Permalink
remove negative test since eop doesn't allow field deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso committed Jan 16, 2025
1 parent cb1416d commit e8f7b2c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions test/run-drun/ok/upgrade-class-migration.drun.ok
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ debug.print: Version 2
ingress Completed: Reply: 0x4449444c0000
debug.print: {four = [var (1, "1"), (2, "2"), (3, "3"), (4, "4")]; zero = 0}
ingress Completed: Reply: 0x4449444c0000
ingress Err: IC0503: Error from Canister rwlgt-iiaaa-aaaaa-aaaaa-cai: Canister called `ic0.trap` with message: stable variable `three` of type `var [var (Nat, Text)]` expected but not found.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: http://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly
debug.print: {four = [var (1, "1"), (2, "2"), (3, "3"), (4, "4")]; zero = 0}
ingress Completed: Reply: 0x4449444c0000
debug.print: {migration = {new = {four = [var ("1", 1), ("2", 2), ("3", 3), ("4", 4)]}; old = {four = [var (1, "1"), (2, "2"), (3, "3"), (4, "4")]}}}
debug.print: Version 3
ingress Completed: Reply: 0x4449444c0000
Expand Down
4 changes: 0 additions & 4 deletions test/run-drun/ok/upgrade-migration.drun.ok
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ debug.print: Version 2
ingress Completed: Reply: 0x4449444c0000
debug.print: {four = [var (1, "1"), (2, "2"), (3, "3"), (4, "4")]; zero = 0}
ingress Completed: Reply: 0x4449444c0000
ingress Err: IC0503: Error from Canister rwlgt-iiaaa-aaaaa-aaaaa-cai: Canister called `ic0.trap` with message: stable variable `three` of type `var [var (Nat, Text)]` expected but not found.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: http://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly
debug.print: {four = [var (1, "1"), (2, "2"), (3, "3"), (4, "4")]; zero = 0}
ingress Completed: Reply: 0x4449444c0000
debug.print: {migration = {new = {four = [var ("1", 1), ("2", 2), ("3", 3), ("4", 4)]}; old = {four = [var (1, "1"), (2, "2"), (3, "3"), (4, "4")]}}}
debug.print: Version 3
ingress Completed: Reply: 0x4449444c0000
Expand Down
2 changes: 0 additions & 2 deletions test/run-drun/upgrade-class-migration.drun
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ upgrade $ID upgrade-class-migration/version1.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-class-migration/version2.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-class-migration/version2.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-class-migration/version3.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-class-migration/version4.mo ""
Expand Down
2 changes: 0 additions & 2 deletions test/run-drun/upgrade-migration.drun
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ upgrade $ID upgrade-migration/version1.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-migration/version2.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-migration/version2.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-migration/version3.mo ""
ingress $ID check "DIDL\x00\x00"
upgrade $ID upgrade-migration/version4.mo ""
Expand Down

0 comments on commit e8f7b2c

Please sign in to comment.