wip: Mark update slots with XX:, add pkg/server/container.go

This commit is contained in:
Michael Hohn
2024-06-13 08:46:05 -07:00
committed by =Michael Hohn
parent 5b9df73424
commit 8df9673897
9 changed files with 434 additions and 46 deletions

View File

@@ -6,7 +6,7 @@ import (
"mrvacommander/pkg/storage"
)
func TestSetupDB(t *testing.T) {
func TestSetupTables(t *testing.T) {
db, err := storage.ConnectDB(storage.DBSpec{
Host: "localhost",
@@ -22,7 +22,7 @@ func TestSetupDB(t *testing.T) {
// Check and set up the database
s := storage.StorageContainer{RequestID: 12345, DB: db}
if err := s.SetupDB(); err != nil {
if err := s.SetupTables(); err != nil {
t.Errorf("Cannot set up db")
}