Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 10, 2023
1 parent c83385e commit d11bf50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ jobs:
./build/wfb_keygen
- name: Unit test
run: |
./build/unit_test
cd build
./unit_test
6 changes: 4 additions & 2 deletions executables/unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ static void test_fec_stream_random_bs_fs_overhead_dropped(){
// Test encryption+packet validation and packet validation only
static void test_encrypt_decrypt_validate(const bool useGeneratedFiles,bool message_signing_only) {
std::cout << "Using generated keypair (default seed otherwise):" << (useGeneratedFiles ? "y" : "n") << "\n";
const std::string filename_gs="gs.key"; //"../example_keys/gs.key"
const std::string filename_drone="drone.key"; //"../example_keys/drone.key"
//const std::string filename_gs="gs.key";
//const std::string filename_drone="drone.key";
const std::string filename_gs="../example_keys/gs.key";
const std::string filename_drone="../example_keys/drone.key";
std::optional<std::string> encKey = useGeneratedFiles ? std::optional<std::string>(filename_gs) : std::nullopt;
std::optional<std::string> decKey = useGeneratedFiles ? std::optional<std::string>(filename_drone) : std::nullopt;
if(message_signing_only){
Expand Down

0 comments on commit d11bf50

Please sign in to comment.