Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR] test: fix static field initialized before TempDir field injected #707

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

advancedxy
Copy link
Contributor

What changes were proposed in this pull request?

fix UTs

Why are the changes needed?

Makes integration tests passed on local machines

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually verified.

@advancedxy advancedxy requested a review from zuston March 10, 2023 10:15
@advancedxy
Copy link
Contributor Author

@zuston this should also be applied for v0.7, one failed test is caused by this.

@@ -56,14 +56,15 @@
public class DiskErrorToleranceTest extends ShuffleReadWriteBase {
private ShuffleServerGrpcClient shuffleServerClient;

@TempDir private static File serverTmpDir;
private static File data1 = new File(serverTmpDir, "data1");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serverTmpDir is injected after static variable initialization

Copy link
Contributor

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @advancedxy.

@kaijchen kaijchen changed the title [MINOR] fix: tempdir annotated variable should be referred in BeforeAll method [MINOR] test: fix static field initialized before TempDir field injected Mar 10, 2023
@kaijchen kaijchen merged commit 4068593 into apache:master Mar 10, 2023
kaijchen pushed a commit that referenced this pull request Mar 10, 2023
…ted (#707)

### What changes were proposed in this pull request?
fix UTs

### Why are the changes needed?
Makes integration tests passed on local machines

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Manually verified.
advancedxy added a commit to advancedxy/incubator-uniffle that referenced this pull request Mar 21, 2023
…ted (apache#707)

### What changes were proposed in this pull request?
fix UTs

### Why are the changes needed?
Makes integration tests passed on local machines

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Manually verified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants