summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-04-20 13:45:55 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-04-20 14:15:47 +0200
commit1350ca686ba2557dd8e2c17eab367bfbfe9b389a (patch)
tree51de3dab76ff05761378086b6caf031d29b740c0
parent235d4ab12e72aeef4bbfc59de1d6d51cacdb2e66 (diff)
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.
-rw-r--r--test/libapt/configuration_test.cc2
1 files changed, 2 insertions, 0 deletions
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();
}