From 1350ca686ba2557dd8e2c17eab367bfbfe9b389a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 20 Apr 2024 13:45:55 +0200 Subject: test: configuration: color: reset _config after tests This avoids us polluting the configuration for later tests, since the test order apparently is not deterministic. We probably should fix some common test case thingy instead. --- test/libapt/configuration_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/libapt/configuration_test.cc b/test/libapt/configuration_test.cc index 61c7348a2..0e8a1f191 100644 --- a/test/libapt/configuration_test.cc +++ b/test/libapt/configuration_test.cc @@ -259,4 +259,6 @@ TEST(ConfigurationTest, Color) EXPECT_EQ("\x1B[B\x1B[G", APT::Configuration::color("boldgreenref")); EXPECT_EQ("\x1B[B\x1B[G\x1B[N", APT::Configuration::color("boldgreenneutral")); EXPECT_EQ("\x1B[B\x1B[G\x1B[N", APT::Configuration::color("boldgreenrefneutral")); + // Reset for other tests + _config->Clear(); } -- cgit v1.2.3-70-g09d2