Skip to content

Commit

Permalink
Add missing includes and reduce test flake
Browse files Browse the repository at this point in the history
  • Loading branch information
cajun-rat committed Aug 2, 2024
1 parent b55f782 commit 1213d29
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/aktualizr_info/aktualizr_info_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <gtest/gtest.h>

#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>

#include "libaktualizr/config.h"
#include "storage/sqlstorage.h"
Expand Down
2 changes: 2 additions & 0 deletions src/aktualizr_secondary/aktualizr_secondary_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#include <gtest/gtest.h>

#include <boost/filesystem.hpp>
#include <boost/filesystem/string_file.hpp>
#include <boost/optional/optional_io.hpp>
#include <fstream>

#include "aktualizr_secondary_file.h"
#include "crypto/keymanager.h"
Expand Down
1 change: 1 addition & 0 deletions src/cert_provider/cert_provider_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <gtest/gtest.h>

#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/format.hpp>

#include "cert_provider_test.h"
Expand Down
1 change: 1 addition & 0 deletions src/libaktualizr/config/config_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <boost/algorithm/hex.hpp>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <fstream>

#include "bootstrap/bootstrap.h"
#include "crypto/crypto.h"
Expand Down
3 changes: 3 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ add_test(NAME test_ip_secondary
COMMAND ${PROJECT_SOURCE_DIR}/tests/ipsecondary_test.py
--build-dir ${PROJECT_BINARY_DIR} --src-dir ${PROJECT_SOURCE_DIR})
set_tests_properties(test_ip_secondary PROPERTIES LABELS "noptest")
# This test flakes when run in parallel. Force it to run serially
# TODO Fix this test!
set_tests_properties(test_ip_secondary PROPERTIES RUN_SERIAL ON)

add_test(NAME test_ip_secondary_rotation
COMMAND ${PROJECT_SOURCE_DIR}/tests/ipsecondary_rotation_test.py
Expand Down

0 comments on commit 1213d29

Please sign in to comment.