| … | … | @@ -166,8 +166,9 @@ public: |
| 166 | 166 | usleep(50000); |
| 167 | 167 | |
| 168 | 168 | // Get all ConceptNodes via JSON shell |
| 169 | // -q3 because the guix test environment is slow as molasses |
| 169 | 170 | std::string result = json_cmd_exec( |
| 170 | | "echo 'json\\nAtomSpace.getAtoms(\"ConceptNode\")\\n' | nc -q 1 localhost 17335"); |
| 171 | "echo 'json\\nAtomSpace.getAtoms(\"ConceptNode\")\\n' | nc -q 3 localhost 17335"); |
| 171 | 172 | |
| 172 | 173 | TS_ASSERT(result.find("json-test-1") != std::string::npos); |
| 173 | 174 | TS_ASSERT(result.find("json-test-2") != std::string::npos); |
| … | … | @@ -180,17 +181,18 @@ public: |
| 180 | 181 | logger().debug("BEGIN TEST: %s", __FUNCTION__); |
| 181 | 182 | |
| 182 | 183 | // Create a new atom via JSON command |
| 184 | // -q3 because the guix test environment is slow as molasses |
| 183 | 185 | std::string result = json_cmd_exec( |
| 184 | | "echo 'json\\nAtomSpace.makeAtom({\"type\": \"Concept\", \"name\": \"json-created\"})\\n' | nc -q 1 localhost 17335"); |
| 186 | "echo 'json\\nAtomSpace.makeAtom({\"type\": \"Concept\", \"name\": \"json-created\"})\\n' | nc -q 3 localhost 17335"); |
| 185 | 187 | |
| 186 | 188 | TS_ASSERT(result.find("true") != std::string::npos); |
| 187 | 189 | |
| 188 | 190 | // Verify the atom was created by checking with haveNode |
| 189 | 191 | std::string verify = json_cmd_exec( |
| 190 | | "echo 'json\\nAtomSpace.haveNode(\"Concept\", \"json-created\")\\n' | nc -q 1 localhost 17335"); |
| 192 | "echo 'json\\nAtomSpace.haveNode(\"Concept\", \"json-created\")\\n' | nc -q 3 localhost 17335"); |
| 191 | 193 | |
| 192 | 194 | TS_ASSERT(verify.find("true") != std::string::npos); |
| 193 | 195 | |
| 194 | 196 | logger().debug("END TEST: %s", __FUNCTION__); |
| 195 | 197 | } |
| 196 | | }; |
| 198 | }; |