Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Jan 8, 2025
1 parent c99ad21 commit 3afa552
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Node/Tests/NodeTests/NodeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ final class NodeTests {
try? FileManager.default.removeItem(at: path)
}

@Test
func validatorNodeInMemory() async throws {
@Test func validatorNodeInMemory() async throws {
let (nodes, scheduler) = try await Topology(
nodes: [NodeDescription(isValidator: true)]
).build(genesis: .preset(.minimal))
Expand All @@ -44,8 +43,7 @@ final class NodeTests {
#expect(try await validatorNode.blockchain.dataProvider.hasBlock(hash: newBestHead.hash))
}

Check failure on line 45 in Node/Tests/NodeTests/NodeTests.swift

View workflow job for this annotation

GitHub Actions / Swift Lint

Trailing Whitespace (trailing_whitespace)

Lines should not have trailing whitespace
@Test
func validatorNodeRocksDB() async throws {
@Test func validatorNodeRocksDB() async throws {
let (nodes, scheduler) = try await Topology(
nodes: [NodeDescription(isValidator: true, database: getDatabase(0))]
).build(genesis: .preset(.minimal))
Expand All @@ -68,8 +66,7 @@ final class NodeTests {
#expect(try await validatorNode.blockchain.dataProvider.hasBlock(hash: newBestHead.hash))
}

Check failure on line 68 in Node/Tests/NodeTests/NodeTests.swift

View workflow job for this annotation

GitHub Actions / Swift Lint

Trailing Whitespace (trailing_whitespace)

Lines should not have trailing whitespace
@Test
func sync() async throws {
@Test func sync() async throws {
// Create validator and full node
let (nodes, scheduler) = try await Topology(
nodes: [
Expand Down Expand Up @@ -108,8 +105,7 @@ final class NodeTests {
#expect(newValidatorBestHead.timeslot > validatorBestHead.timeslot)
}

Check failure on line 107 in Node/Tests/NodeTests/NodeTests.swift

View workflow job for this annotation

GitHub Actions / Swift Lint

Trailing Whitespace (trailing_whitespace)

Lines should not have trailing whitespace
@Test
func multiplePeers() async throws {
@Test func multiplePeers() async throws {
// Create multiple nodes
let (nodes, scheduler) = try await Topology(
nodes: [
Expand Down Expand Up @@ -146,8 +142,7 @@ final class NodeTests {
#expect(validator2BestHead.hash == node1BestHead.hash)
}

Check failure on line 144 in Node/Tests/NodeTests/NodeTests.swift

View workflow job for this annotation

GitHub Actions / Swift Lint

Trailing Whitespace (trailing_whitespace)

Lines should not have trailing whitespace
@Test
func moreMultiplePeers() async throws {
@Test func moreMultiplePeers() async throws {
// Create multiple nodes
var nodeDescriptions: [NodeDescription] = [
NodeDescription(isValidator: true, database: getDatabase(0)),
Expand Down

0 comments on commit 3afa552

Please sign in to comment.