Skip to content

Commit

Permalink
More precise tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 3, 2024
1 parent 8717fda commit bc920be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/falcon/environment/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def authority
self.name
end

# Number of instances to start.
# Number of instances to start. By default (when nil), uses `Etc.nprocessors`.
# @returns [Integer | nil]
def count
Etc.nprocessors
nil
end

# Options to use when creating the container.
Expand Down
2 changes: 1 addition & 1 deletion test/falcon/service/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
server.setup(container)
container.wait_until_ready

expect(container.group.running).to have_attributes(size: be > 0)
expect(container.group.running).to have_attributes(size: be == Etc.nprocessors)

server.stop
container.stop
Expand Down

0 comments on commit bc920be

Please sign in to comment.