Skip to content

Commit

Permalink
chore: Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed May 21, 2024
1 parent f30dd7d commit fa2f671
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ shards:

faker:
git: https://github.com/askn/faker.git
version: 0.8.0
version: 0.9.0

future:
git: https://github.com/crystal-community/future.cr.git
version: 1.0.0

git-repository:
git: https://github.com/place-labs/git-repository.git
version: 1.3.1
version: 1.4.0

google:
git: https://github.com/placeos/google.git
Expand Down Expand Up @@ -207,7 +207,7 @@ shards:

placeos-models:
git: https://github.com/placeos/models.git
version: 9.45.0
version: 9.47.0

placeos-resource:
git: https://github.com/place-labs/resource.git
Expand Down
12 changes: 6 additions & 6 deletions spec/helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ around_suite ->{

PgORM::Database.configure { |_| }
Spec.before_suite do
Log.builder.bind("*", backend: PlaceOS::Core::LOG_STDOUT, level: :warn)
Log.builder.bind("place_os.*", backend: PlaceOS::Core::LOG_STDOUT, level: :error)
Log.builder.bind("http.client", backend: PlaceOS::Core::LOG_STDOUT, level: :warn)
Log.builder.bind("clustering", backend: PlaceOS::Core::LOG_STDOUT, level: :error)
Log.builder.bind("hound_dog.*", backend: PlaceOS::Core::LOG_STDOUT, level: :error)
Log.builder.bind("*", backend: PlaceOS::LogBackend.log_backend, level: :warn)
Log.builder.bind("place_os.*", backend: PlaceOS::LogBackend.log_backend, level: :error)
Log.builder.bind("http.client", backend: PlaceOS::LogBackend.log_backend, level: :warn)
Log.builder.bind("clustering", backend: PlaceOS::LogBackend.log_backend, level: :error)
Log.builder.bind("hound_dog.*", backend: PlaceOS::LogBackend.log_backend, level: :error)
end

Spec.after_suite do
PlaceOS::Core::ResourceManager.instance.stop
Log.builder.bind("*", backend: PlaceOS::Core::LOG_STDOUT, level: :error)
Log.builder.bind("*", backend: PlaceOS::LogBackend.log_backend, level: :error)
puts "\n> Terminating stray driver processes"
`pkill -f ".*core-spec.*"` rescue nil
end
Expand Down
2 changes: 1 addition & 1 deletion spec/module_manager_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module PlaceOS::Core
module_manager.discovery.nodes.should contain(core_uri)

module_manager.stop
sleep 0.1
sleep 2

# Check that the node is no longer registered in etcd
module_manager.discovery.nodes.should_not contain(core_uri)
Expand Down

0 comments on commit fa2f671

Please sign in to comment.