Skip to content

Commit 102fe93

Browse files
committed
test: fix test
1 parent 65e68ad commit 102fe93

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

coord/tests/unit/test_distagg.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,11 @@ static void testSplit() {
133133
}
134134

135135
int main(int, char **) {
136-
RMCK_Bootstrap(my_OnLoad, NULL, 0);
137-
RMCK::init();
136+
const char *arguments[] = {""};
137+
RMCK_Bootstrap(my_OnLoad, arguments, 1);
138138
testAverage();
139139
testCountDistinct();
140-
// RMCK_Shutdown() is causing a segfault, but I need to remove the scorer before exiting to avoid sanitizer errors
141-
rm_free((void *)RSGlobalConfig.defaultScorer);
142-
RSGlobalConfig.defaultScorer = NULL;
140+
RMCK_Shutdown();
143141
}
144142

145143
//REDISMODULE_INIT_SYMBOLS();

0 commit comments

Comments
 (0)