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

test: etcd ut #815

Merged
merged 1 commit into from
Jan 28, 2024
Merged

test: etcd ut #815

merged 1 commit into from
Jan 28, 2024

Conversation

baerwang
Copy link
Contributor

What this PR does:

Which issue(s) this PR fixes:

Fixes #790

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Copy link

cr-gpt bot commented Jan 13, 2024

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

Copy link

sonarcloud bot commented Jan 13, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@codecov-commenter
Copy link

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (35d9d72) 40.46% compared to head (2c1d331) 40.12%.
Report is 2 commits behind head on master.

Files Patch % Lines
pkg/config/boot_misc.go 12.50% 7 Missing ⚠️
pkg/boot/watcher.go 83.33% 1 Missing ⚠️
pkg/runtime/ast/ast.go 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #815      +/-   ##
==========================================
- Coverage   40.46%   40.12%   -0.35%     
==========================================
  Files         265      265              
  Lines       26711    26730      +19     
==========================================
- Hits        10809    10725      -84     
- Misses      14739    14852     +113     
+ Partials     1163     1153      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -92,7 +88,7 @@ func (c *storeOperate) Get(key config.PathKey) ([]byte, error) {
}

if len(resp.Kvs) == 0 {
return nil, err
return nil, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

why fix the return value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

err pre contion aleady return

@dongzl dongzl added the test Unit test. label Jan 26, 2024
@dongzl dongzl added this to the 0.3.0 milestone Jan 26, 2024
@dongzl dongzl merged commit 2e81d66 into arana-db:master Jan 28, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Unit test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Test] add unit test for /arana/pkg/config/etcd/etcd.go
4 participants