Skip to content

Commit

Permalink
testing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLok committed Jan 17, 2024
1 parent 27015d7 commit 9fd336b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion common/lockmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func Unlock(key string) error {
lock.timestamp = time.Now();
lock.mutex.Unlock();
return nil;

}

func removeStaleLocks() {
Expand Down
2 changes: 1 addition & 1 deletion common/lockmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
)


func TestLock(t *testing.T) {
func testLock(t *testing.T) {
var wg sync.WaitGroup

Lock(key)
Expand Down
2 changes: 1 addition & 1 deletion config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ var (
DB_TYPE = MustNewStringOption("db.type", "disk", "The type of database to use.");
DB_PG_URI = MustNewStringOption("db.pg.uri", "", "Connection string to connect to a Postgres Databse. Empty if not using Postgres.");

STALELOCK_DURATION = MustNewIntOption("stale.duration", 5, "Amount of time a Lock can be unused before getting removed");
STALELOCK_DURATION = MustNewIntOption("stale.duration", 5, "Amount of time a lock can be unused before getting removed");
)

0 comments on commit 9fd336b

Please sign in to comment.