Skip to content

walkr/nanoservice-start-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanoservice-start-tests

Test if a collection of nanoservices starts properly

Usage

Install

$ make install

Start services

$ make start

13:36:34 one.1   | INFO:root:Service started on tcp://127.0.0.1:5001
13:36:34 four.1  | INFO:root:Service started on tcp://127.0.0.1:5004
13:36:34 seven.1 | INFO:root:Service started on tcp://127.0.0.1:5007
13:36:34 three.1 | INFO:root:Service started on tcp://127.0.0.1:5003
13:36:34 five.1  | INFO:root:Service started on tcp://127.0.0.1:5005
13:36:34 six.1   | INFO:root:Service started on tcp://127.0.0.1:5006
13:36:34 two.1   | INFO:root:Service started on tcp://127.0.0.1:5002

Then in a different shell

$ make test

Hello from one     - 1.09 ms
Hello from two     - 1.10 ms
Hello from three   - 1.54 ms
Hello from four    - 0.64 ms
Hello from five    - 0.55 ms
Hello from six     - 0.55 ms
Hello from seven   - 0.48 ms

About

Starts a collection of nanoservices to test if they start properly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published