diff options
author | Justin Clark-Casey (justincc) | 2013-02-08 00:38:30 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-08 00:38:30 +0000 |
commit | 9c9b48b29a97d97625330bbad7cddbe6d2dcd28d (patch) | |
tree | ffae6dfe9bd89db2cec0c1a66ac0f7a42c5b61da | |
parent | Extend TestJsonWriteNotecard() regression test for cases with fake paths and ... (diff) | |
download | opensim-SC_OLD-9c9b48b29a97d97625330bbad7cddbe6d2dcd28d.zip opensim-SC_OLD-9c9b48b29a97d97625330bbad7cddbe6d2dcd28d.tar.gz opensim-SC_OLD-9c9b48b29a97d97625330bbad7cddbe6d2dcd28d.tar.bz2 opensim-SC_OLD-9c9b48b29a97d97625330bbad7cddbe6d2dcd28d.tar.xz |
Stop wrongly create a receiving store already populated with "Hello":"World" in TestJsonReadNotecard()
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs index ce586be..6658e1e 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | |||
@@ -344,12 +344,14 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
344 | InvokeOpOnHost("JsonWriteNotecard", so.UUID, storeId, "/", notecardName); | 344 | InvokeOpOnHost("JsonWriteNotecard", so.UUID, storeId, "/", notecardName); |
345 | 345 | ||
346 | // Read notecard | 346 | // Read notecard |
347 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello':'World' }"); | 347 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ }"); |
348 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "/", notecardName); | 348 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "/", notecardName); |
349 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); | 349 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); |
350 | 350 | ||
351 | string value = (string)InvokeOp("JsonGetValue", storeId, "Hello"); | 351 | string value = (string)InvokeOp("JsonGetValue", storeId, "Hello"); |
352 | Assert.That(value, Is.EqualTo("World")); | 352 | Assert.That(value, Is.EqualTo("World")); |
353 | |||
354 | |||
353 | } | 355 | } |
354 | 356 | ||
355 | public object DummyTestMethod(object o1, object o2, object o3, object o4, object o5) { return null; } | 357 | public object DummyTestMethod(object o1, object o2, object o3, object o4, object o5) { return null; } |