about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--db_actions_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/db_actions_test.go b/db_actions_test.go
index 230093a..07dd2d3 100644
--- a/db_actions_test.go
+++ b/db_actions_test.go
@@ -144,6 +144,13 @@ func TestInsertStar(t *testing.T) {
 	db = ConnectToDB()
 	db.SetMaxOpenConns(75)
 
+	// delete all preexisting stars and nodes
+	DeleteAllStars(db)
+	DeleteAllNodes(db)
+
+	// create a new tree with a width of 1000
+	NewTree(db, 1000)
+
 	type args struct {
 		database *sql.DB
 		star     structs.Star2D