fix: use projectId from CloudStorageConfig#429
Conversation
Codecov Report
@@ Coverage Diff @@
## master #429 +/- ##
============================================
+ Coverage 72.29% 72.57% +0.27%
Complexity 500 500
============================================
Files 29 29
Lines 1664 1670 +6
Branches 277 276 -1
============================================
+ Hits 1203 1212 +9
+ Misses 336 335 -1
+ Partials 125 123 -2
Continue to review full report at Codecov.
|
| import org.junit.runner.RunWith; | ||
| import org.junit.runners.JUnit4; | ||
|
|
||
| /** Unit tests for {@link CloudStorageFileSystemProvider} late initialization. */ |
There was a problem hiding this comment.
nit: I don't think this comment is true
There was a problem hiding this comment.
lol.... copy paste disaster over here!
| fileSystem.provider().getProject() == null | ||
| ? null | ||
| : Storage.BlobListOption.userProject(fileSystem.provider().getProject())); | ||
| String userProject = fileSystem.config().userProject(); |
There was a problem hiding this comment.
Am I understanding correctly, the bug was reading projectId from the ServiceOptions instead of from the CloudStorageConfig? If so, can we update the commit comment to explain this fact?
There was a problem hiding this comment.
Good call, that's much clearer.
f97db4d to
0f64570
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #352 ☕️