Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake authored and Adrian Cole committed Mar 7, 2022
1 parent 278fad8 commit f651d95
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/wasm/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ func TestStore_concurrent(t *testing.T) {
GlobalSection: []*Global{{Type: &GlobalType{}, Init: &ConstantExpression{Opcode: OpcodeI32Const, Data: []byte{0x1}}}},
TableSection: []*TableType{{Limit: &LimitsType{Min: 10}}},
ImportSection: []*Import{
// Fisrt import resolve succeeds -> increment the hm.importedCount.
{Type: ExternTypeFunc, Module: importedModuleName, Name: "fn", DescFunc: 0},
},
}
Expand Down Expand Up @@ -283,7 +282,7 @@ func TestSotre_Instantiate_Errors(t *testing.T) {
_, err = s.Instantiate(&Module{
TypeSection: []*FunctionType{{}},
ImportSection: []*Import{
// Fisrt import resolve succeeds -> increment the hm.importedCount.
// The fisrt import resolve succeeds -> increment hm.importedCount.
{Type: ExternTypeFunc, Module: importedModuleName, Name: "fn", DescFunc: 0},
// But the second one tries to import uninitialized-module ->
{Type: ExternTypeFunc, Module: "non-exist", Name: "fn", DescFunc: 0},
Expand Down Expand Up @@ -320,7 +319,6 @@ func TestSotre_Instantiate_Errors(t *testing.T) {
{Body: []byte{OpcodeEnd}},
},
ImportSection: []*Import{
// Fisrt import resolve succeeds -> increment the hm.importedCount.
{Type: ExternTypeFunc, Module: importedModuleName, Name: "fn", DescFunc: 0},
},
}, importingModuleName)
Expand Down Expand Up @@ -350,7 +348,6 @@ func TestSotre_Instantiate_Errors(t *testing.T) {
CodeSection: []*Code{{Body: []byte{OpcodeEnd}}},
StartSection: &startFuncIndex,
ImportSection: []*Import{
// Fisrt import resolve succeeds -> increment the hm.importedCount.
{Type: ExternTypeFunc, Module: importedModuleName, Name: "fn", DescFunc: 0},
},
}, importingModuleName)
Expand Down

0 comments on commit f651d95

Please sign in to comment.