Add monitor/debug packages
This commit is contained in:
		
							
								
								
									
										19
									
								
								monitor/default_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								monitor/default_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| package monitor | ||||
|  | ||||
| import ( | ||||
| 	"testing" | ||||
| ) | ||||
|  | ||||
| func TestMonitor(t *testing.T) { | ||||
| 	// create new monitor | ||||
| 	m := NewMonitor() | ||||
|  | ||||
| 	services := []string{"foo", "bar", "baz"} | ||||
|  | ||||
| 	for _, service := range services { | ||||
| 		_, err := m.Status(service) | ||||
| 		if err != nil { | ||||
| 			t.Fatal("expected status error for unknown service") | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user