Skip to content

Commit

Permalink
Revert "Fix tests broker output"
Browse files Browse the repository at this point in the history
This reverts commit 966f4f4.
  • Loading branch information
Joseph McKinsey committed Jan 13, 2025
1 parent 966f4f4 commit 39ee0ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/systemtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ end
h.helicsBrokerSetGlobal(brk, "testglobal", globalVal)
q = h.helicsCreateQuery("global", "testglobal")
res = h.helicsQueryBrokerExecute(q, brk)
@test res == "{\n \"name\": \"testglobal\",\n \"value\": \"this is a string constant that functions as a global\"\n}"
@test res == "{\n \"name\" : \"testglobal\",\n \"value\" : \"this is a string constant that functions as a global\"\n}"

h.helicsBrokerSetGlobal(brk, "testglobal2", globalVal2)
h.helicsQueryFree(q)
q = h.helicsCreateQuery("global", "testglobal2")
res = h.helicsQueryBrokerExecute(q, brk)
@test res == "{\n \"name\": \"testglobal2\",\n \"value\": \"this is a second string constant that functions as a global\"\n}"
@test res == "{\n \"name\" : \"testglobal2\",\n \"value\" : \"this is a second string constant that functions as a global\"\n}"

h.helicsBrokerDisconnect(brk)
h.helicsQueryFree(q)
Expand Down Expand Up @@ -109,7 +109,7 @@ end
h.helicsFederateSetGlobal(fed, "testglobal", globalVal)
q = h.helicsCreateQuery("global", "testglobal")
res = h.helicsQueryExecute(q, fed)
@test res == "{\n \"name\": \"testglobal\",\n \"value\": \"this is a string constant that functions as a global\"\n}"
@test res == "{\n \"name\" : \"testglobal\",\n \"value\" : \"this is a string constant that functions as a global\"\n}"
h.helicsFederateSetGlobal(fed, "testglobal2", globalVal2)
h.helicsQueryFree(q)
q = h.helicsCreateQuery("global", "testglobal2")
Expand All @@ -118,7 +118,7 @@ end
sleep(0.20)
end
res = h.helicsQueryExecuteComplete(q)
@test res == "{\n \"name\": \"testglobal2\",\n \"value\": \"this is a second string constant that functions as a global\"\n}"
@test res == "{\n \"name\" : \"testglobal2\",\n \"value\" : \"this is a second string constant that functions as a global\"\n}"

q2 = h.helicsCreateQuery("", "isinit")
h.helicsQueryExecuteAsync(q2, fed)
Expand Down

0 comments on commit 39ee0ef

Please sign in to comment.