Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Dec 11, 2024
1 parent 5eb4822 commit e148958
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Node/Tests/NodeTests/NodeTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Blockchain
import Foundation
import Testing
import TracingUtils
import Utils

@testable import Node
Expand All @@ -22,7 +21,6 @@ final class NodeTests {

@Test
func validatorNodeInMemory() async throws {
setupTestLogger()
let (nodes, scheduler) = try await Topology(
nodes: [NodeDescription(isValidator: true)]
).build(genesis: .preset(.minimal))
Expand Down Expand Up @@ -53,7 +51,6 @@ final class NodeTests {

@Test
func validatorNodeRocksDB() async throws {
setupTestLogger()
let (nodes, scheduler) = try await Topology(
nodes: [NodeDescription(isValidator: true, database: getDatabase(0))]
).build(genesis: .preset(.minimal))
Expand Down Expand Up @@ -87,8 +84,8 @@ final class NodeTests {
// Create validator and full node
let (nodes, scheduler) = try await Topology(
nodes: [
NodeDescription(isValidator: true),
NodeDescription(devSeed: 1),
NodeDescription(isValidator: true, database: getDatabase(0)),
NodeDescription(devSeed: 1, database: getDatabase(1)),
],
connections: [(0, 1)]
).build(genesis: .preset(.minimal))
Expand Down Expand Up @@ -137,10 +134,10 @@ final class NodeTests {
// Create multiple nodes
let (nodes, scheduler) = try await Topology(
nodes: [
NodeDescription(isValidator: true),
NodeDescription(isValidator: true, devSeed: 1),
NodeDescription(devSeed: 2),
NodeDescription(devSeed: 3),
NodeDescription(isValidator: true, database: getDatabase(0)),
NodeDescription(isValidator: true, devSeed: 1, database: getDatabase(1)),
NodeDescription(devSeed: 2, database: getDatabase(2)),
NodeDescription(devSeed: 3, database: .inMemory),
],
connections: [(0, 1), (0, 2), (0, 3), (1, 2), (1, 3)]
).build(genesis: .preset(.minimal))
Expand Down

0 comments on commit e148958

Please sign in to comment.