Skip to content

Commit

Permalink
unittest verbose=true
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed May 24, 2024
1 parent 5cf5897 commit 7f0fd2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-unit-gh_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
export LANG="en_US.UTF-8"
sudo update-locale
sudo /opt/HPCCSystems/bin/unittests
/opt/HPCCSystems/bin/unittests
- name: unittests-logs-artifact
if: ${{ failure() || cancelled() }}
Expand Down
16 changes: 10 additions & 6 deletions testing/unittests/dalitests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ void daliClientInit()
// Only initialise on first pass
if (initCounter != 0)
return;
InitModuleObjects();
user->set("user", "passwd");
static bool modulesInitialized = false;
if (!modulesInitialized)
{
InitModuleObjects();
user->set("user", "passwd");
modulesInitialized = true;
}
// Connect to local Dali
SocketEndpoint ep;
ep.set(".", 7070);
Expand All @@ -82,12 +87,11 @@ void daliClientEnd()
else if (1 == initCounter) // Only destroy on last pass
{
// Cleanup
releaseAtoms();
//releaseAtoms();
closedownClientProcess();
setNodeCaching(false);
//setNodeCaching(false);
}
else
initCounter--;
initCounter--;
}

interface IChecker
Expand Down

0 comments on commit 7f0fd2b

Please sign in to comment.