Skip to content

Commit

Permalink
SharedArray: better test to catch not reusing the shared data
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Apr 7, 2021
1 parent d02c6f2 commit e12a444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/data/share_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestSharedArrayAnotherRuntimeWorking(t *testing.T) {
// create another Runtime with new ctx but keep the initEnv
rt, err = newConfiguredRuntime(moduleInstance)
require.NoError(t, err)
_, err = rt.RunString(makeArrayScript)
_, err = rt.RunString(`var array = new data.SharedArray("shared", function() {throw "wat";});`)
require.NoError(t, err)

_, err = rt.RunString(`
Expand Down

0 comments on commit e12a444

Please sign in to comment.