]> Cypherpunks.ru repositories - goircd.git/blobdiff - client_test.go
Fix several races
[goircd.git] / client_test.go
index 22cc401ea920bacc0e36c245145359be47d851d1..82756c8ad5008cf28a63b524901f18becc4cb0cd 100644 (file)
@@ -105,7 +105,6 @@ func TestNewClient(t *testing.T) {
        }
        conn.inbound <- "foo"
        event = <-sink
-       ts1 := client.timestamp
        if (event.event_type != EVENT_MSG) || (event.text != "foo") {
                t.Fatal("no first MSG", event)
        }
@@ -115,9 +114,6 @@ func TestNewClient(t *testing.T) {
                t.Fatal("no second MSG", event)
        }
        conn.inbound <- ""
-       if client.timestamp.Before(ts1) || client.timestamp.Equal(ts1) {
-               t.Fatal("timestamp updating")
-       }
        event = <-sink
        if event.event_type != EVENT_DEL {
                t.Fatal("no client termination", event)