Skip to content

Commit

Permalink
Fix index script (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
shosseinimotlagh authored Apr 26, 2024
1 parent cbe45ef commit 7804a4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class HomestoreConan(ConanFile):
name = "homestore"
version = "6.3.4"
version = "6.3.5"

homepage = "https://github.com/eBay/Homestore"
description = "HomeStore Storage Engine"
Expand Down
4 changes: 2 additions & 2 deletions src/tests/test_index_btree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct BtreeTest : public BtreeTestHelper< TestType >, public ::testing::Test {

void TearDown() override {
BtreeTestHelper< TestType >::TearDown();
test_common::HSTestHelper::shutdown_homestore();
test_common::HSTestHelper::shutdown_homestore(false);
}

void restart_homestore() {
Expand Down Expand Up @@ -496,7 +496,7 @@ struct BtreeConcurrentTest : public BtreeTestHelper< TestType >, public ::testin
LOGINFO("Teardown with Root bnode_id {} tree size: {}", this->m_bt->root_node_id(),
this->m_bt->count_keys(this->m_bt->root_node_id()));
BtreeTestHelper< TestType >::TearDown();
test_common::HSTestHelper::shutdown_homestore(cleanup);
test_common::HSTestHelper::shutdown_homestore(false);
}

private:
Expand Down
11 changes: 3 additions & 8 deletions src/tests/test_scripts/btree_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ def long_running_clean_shutdown(type=0):
normal_run_time = 1 * 1200 # 20 minutes
try:
function_normal(normal_run_time, False, True, type)
for i in range(1,3):
for i in range(1,5):
function_normal(normal_run_time, False, False, type)
print("Iteration {} completed successfully".format(i))
function_normal(0, True, False, type) # cleanup after shutdown
print("All iterations completed successfully for type {}".format(type))
except TestFailedError as e:
print("Test failed: {}".format(e))
Expand Down Expand Up @@ -137,7 +136,7 @@ def test_index_btree():
while True:
try:
#TODO enable for other types when fix is available for varlen node types.
for type in range(4):
for type in range(1):
long_running_clean_shutdown(type)
print("long_running_clean_shutdown completed successfully for type {}".format(type))
except:
Expand All @@ -149,12 +148,8 @@ def test_index_btree():

def nightly():
long_runnig_index(0)
long_runnig_index(1)
long_runnig_index(2)
long_runnig_index(3)

long_running_clean_shutdown(0)
# long_running_clean_shutdown()
test_index_btree()
# crash_recovery_framework()

# The name of the method to be called is the var test_suits
Expand Down

0 comments on commit 7804a4e

Please sign in to comment.