Commit 6643490a authored by Stan Hu's avatar Stan Hu

Eliminate unnecessary code in GoCloud test stubs

This should eliminate a race condition that only occurred in the test
where multiple Goroutines attempt to write to the same value when
opening a bucket.
parent 620c1b95
---
title: Eliminate unnecessary code in GoCloud test stubs
merge_request: 590
author:
type: other
......@@ -13,12 +13,10 @@ import (
)
type dirOpener struct {
u *url.URL // last url passed to OpenBucketURL
tmpDir string
}
func (o *dirOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blob.Bucket, error) {
o.u = u
return fileblob.OpenBucket(o.tmpDir, nil)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment