• Jakob Unterwurzacher's avatar
    tests: fix data race in TestDeletedInodePath · 6b30e299
    Jakob Unterwurzacher authored
    Running `go test ./... -race` showed a data race
    at `rootNode.deleted`. This race cannot really happen,
    but the race detector does not know that as the calls
    go through FUSE an appear to not be synchronized.
    
    Use atomic loads and stores to make the race detector
    happy.
    
    Change-Id: I26bd3e7d8efdd5b967fdb360eb17d7f71a8005c8
    6b30e299
bridge_test.go 5.35 KB