14360: Use nonblocking mode when checking for stale lock.
[arvados.git] / services / crunch-run / git_mount_test.go
index 39254df300ee4180309272162ca0f11dae1a9efd..4dc95bc3dfae529069595cc996ef23ab1b83cb09 100644 (file)
@@ -173,6 +173,15 @@ func (s *GitMountSuite) TestInvalid(c *check.C) {
                        },
                        matcher: ".*UUID.*",
                },
+               {
+                       gm: gitMount{
+                               Path:     "/",
+                               UUID:     arvadostest.Repository2UUID,
+                               Commit:   "5ebfab0522851df01fec11ec55a6d0f4877b542e",
+                               Writable: true,
+                       },
+                       matcher: ".*writable.*",
+               },
        } {
                err := trial.gm.extractTree(&ArvTestClient{}, s.tmpdir, arvadostest.ActiveToken)
                c.Check(err, check.NotNil)