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