Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed May 1, 2024
1 parent 3cbba41 commit a26bb42
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x/programs/runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestStop(t *testing.T) {
wasm, err := wasmtime.Wat2Wasm(`
(module
(memory 1) ;; 1 pages
(func $run (param i64)
(func $run (param i32)
(loop br 0)
)
(func $alloc (param i32) (result i32)
Expand Down Expand Up @@ -73,8 +73,8 @@ func TestCallParams(t *testing.T) {
(module
(memory 1) ;; 1 pages
;; first argument is always the pointer to the context
(func $add (param i64 i64 i64) (result i64)
(i64.add local.get 1 local.get 2)
(func $add (param i32 i32 i32) (result i32)
(i32.add local.get 1 local.get 2)
)
(func $alloc (param i32) (result i32)
i32.const 0
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestInfiniteLoop(t *testing.T) {
wasm, err := wasmtime.Wat2Wasm(`
(module
(memory 1) ;; 1 pages
(func $run (param i64)
(func $run (param i32)
(loop br 0)
)
(func $alloc (param i32) (result i32)
Expand Down Expand Up @@ -159,7 +159,7 @@ func TestMetering(t *testing.T) {
wasm, err := wasmtime.Wat2Wasm(`
(module
(memory 1) ;; 1 pages
(func $get (param i64) (result i32)
(func $get (param i32) (result i32)
i32.const 0
)
(func $alloc (param i32) (result i32)
Expand Down Expand Up @@ -207,7 +207,7 @@ func TestMeterAfterStop(t *testing.T) {
wasm, err := wasmtime.Wat2Wasm(`
(module
(memory 1) ;; 1 pages
(func $get (param i64) (result i32)
(func $get (param i32) (result i32)
i32.const 0
)
(func $alloc (param i32) (result i32)
Expand Down Expand Up @@ -358,7 +358,7 @@ func TestWithMaxWasmStack(t *testing.T) {
wasm, err := wasmtime.Wat2Wasm(`
(module
(memory 1) ;; 1 pages
(func $get (param i64) (result i32)
(func $get (param i32) (result i32)
i32.const 0
)
(func $alloc (param i32) (result i32)
Expand Down

0 comments on commit a26bb42

Please sign in to comment.