Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Nicholas <[email protected]>
  • Loading branch information
billphipps and bigbrett authored Apr 4, 2024
1 parent beac42b commit b63527e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/wh_test_clientserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ int whTest_ClientServerSequential(void)
}};
whServerContext server[1] = {0};

wolfCrypt_Init();
wc_InitRng_ex(crypto->rng, NULL, crypto->devId);
wh_Nvm_Init(nvm, n_conf);
WH_TEST_RETURN_ON_FAIL(wolfCrypt_Init());
WH_TEST_RETURN_ON_FAIL(wc_InitRng_ex(crypto->rng, NULL, crypto->devId));
WH_TEST_RETURN_ON_FAIL(wh_Nvm_Init(nvm, n_conf));

/* Init client and server */
WH_TEST_RETURN_ON_FAIL(wh_Client_Init(client, c_conf));
Expand Down
6 changes: 3 additions & 3 deletions test/wh_test_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ static void wh_ClientServer_MemThreadTest(void)
.crypto = crypto,
}};

wh_Nvm_Init(nvm, n_conf);
WH_TEST_RETURN_ON_FAIL(wh_Nvm_Init(nvm, n_conf));

wolfCrypt_Init();
wc_InitRng_ex(crypto->rng, NULL, crypto->devId);
WH_TEST_RETURN_ON_FAIL(wolfCrypt_Init());
WH_TEST_RETURN_ON_FAIL(wc_InitRng_ex(crypto->rng, NULL, crypto->devId));

_whClientServerThreadTest(c_conf, s_conf);

Expand Down

0 comments on commit b63527e

Please sign in to comment.