feat: comment cleanup
This commit is contained in:
1 parent
6b14a95434
commit
648c55415b
112 files changed
+655
-2161
No files matched your search
@@ -36,7 +36,6 @@ func TestClientsDB(t *testing.T) {
|
||||
t.Errorf("Expected client-123 to be removed")
|
||||
}
|
||||
|
||||
// Test persistence
|
||||
_ = db.Add("client-789", "Test Persistence")
|
||||
|
||||
db2, err := New(dbPath)
|
||||
@@ -48,7 +47,6 @@ func TestClientsDB(t *testing.T) {
|
||||
t.Errorf("Expected client-789 to be persisted")
|
||||
}
|
||||
|
||||
// Test hot reload manually
|
||||
db2.mu.Lock()
|
||||
db2.lastModified = db2.lastModified.Add(-1 * time.Second)
|
||||
db2.mu.Unlock()
|
||||
@@ -81,14 +79,12 @@ func TestClientIDRoundTrip(t *testing.T) {
|
||||
|
||||
expectedID := "client-test-uuid-123"
|
||||
|
||||
// Client writes
|
||||
go func() {
|
||||
if werr := WriteClientID(clientConn, expectedID); werr != nil {
|
||||
t.Errorf("WriteClientID failed: %v", werr)
|
||||
}
|
||||
}()
|
||||
|
||||
// Server reads
|
||||
readID, err := ReadClientID(serverConn)
|
||||
if err != nil {
|
||||
t.Fatalf("ReadClientID: %v", err)
|
||||
|
||||
Reference in new issue
Block a user