OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogserver commits / 4f9784c

Revert "Crude hackery to avoid timeouts in build machine"
This reverts commit 4ab77e3f5de15dac495b074b00cf9a403596f851. It was not a timing issue; it was an echo issue.
4f9784c9874a51316d7df03cffc9c3017c175373
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-17T06:55:00.000Z

Changed files (2) +4 -7

tests/shell/JsonShellUTest.cxxtest +3 -5
……@@ -167,9 +167,8 @@ public:
167167 usleep(50000);
168168
169169 // Get all ConceptNodes via JSON shell
170 // -q3 because the guix test environment is slow as molasses
171170 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");
173172
174173 printf("Did we get the Concepts? result=>>>%s<<<\n", result.c_str());
175174 TS_ASSERT(result.find("json-test-1") != std::string::npos);
……@@ -183,16 +182,15 @@ public:
183182 logger().debug("BEGIN TEST: %s", __FUNCTION__);
184183
185184 // Create a new atom via JSON command
186 // -q3 because the guix test environment is slow as molasses
187185 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");
189187
190188 printf("Did we make the Concept? result=>>>%s<<<\n", result.c_str());
191189 TS_ASSERT(result.find("true") != std::string::npos);
192190
193191 // Verify the atom was created by checking with haveNode
194192 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");
196194
197195 printf("Did verification work? verify=>>>%s<<<\n", result.c_str());
198196 TS_ASSERT(verify.find("true") != std::string::npos);
tests/shell/McpShellUTest.cxxtest +1 -2
……@@ -186,11 +186,10 @@ public:
186186 usleep(50000);
187187
188188 // Now use MCP shell to query for the atom
189 // -q3 because the guix test environment is slow as molasses.
190189 std::string result = mcp_cmd_exec(
191190 "printf 'mcp\\n{\"jsonrpc\": \"2.0\", \"method\": \"tools/call\", "
192191 "\"params\": {\"name\": \"getAtoms\", \"arguments\": {\"type\": \"ConceptNode\"}}, "
193 "\"id\": 1}\\n' | nc -q 3 localhost 17334");
192 "\"id\": 1}\\n' | nc -q 1 localhost 17334");
194193
195194 TS_ASSERT(result.size() > 0);
196195 TS_ASSERT(result.find("mcp-test-concept") != std::string::npos);