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

multiplePeers tests #265

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft

multiplePeers tests #265

wants to merge 20 commits into from

Conversation

MacOMNI
Copy link
Contributor

@MacOMNI MacOMNI commented Jan 8, 2025

No description provided.

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 98.61111% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.31%. Comparing base (e9f07cf) to head (b85254f).

Files with missing lines Patch % Lines
...lockchainDataProvider/BlockchainDataProvider.swift 80.00% 1 Missing ⚠️
.../Blockchain/VMInvocations/HostCall/HostCalls.swift 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
+ Coverage   79.28%   79.31%   +0.03%     
==========================================
  Files         298      298              
  Lines       23536    23609      +73     
==========================================
+ Hits        18660    18726      +66     
- Misses       4876     4883       +7     

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

let path = {
let tmpDir = FileManager.default.temporaryDirectory
return tmpDir.appendingPathComponent("\(UUID().uuidString)")
}()

func getDatabase(_ idx: Int) -> Database {
Database.rocksDB(path: path.appendingPathComponent("\(idx)"))
func getDatabase() -> Database {
Copy link
Member

@xlc xlc Jan 10, 2025

Choose a reason for hiding this comment

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

Suggested change
func getDatabase() -> Database {
func getDatabase(_ idx: Int? = nil) -> Database {
let idx = idx ?? Int.random(in: 0..<Int.max)

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.

2 participants