add condition to validade the team
This commit is contained in:
		
							parent
							
								
									31fd283d9d
								
							
						
					
					
						commit
						22b3e9a2e2
					
				| 
						 | 
					@ -162,7 +162,9 @@ func TestInfo(t *testing.T) {
 | 
				
			||||||
				if r.Header.Get("Authorization") != "Bearer "+token {
 | 
									if r.Header.Get("Authorization") != "Bearer "+token {
 | 
				
			||||||
					t.Errorf("authorization token is wrong or not provided")
 | 
										t.Errorf("authorization token is wrong or not provided")
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
									if tc.inTeam == "acid" {
 | 
				
			||||||
					w.WriteHeader(tc.inCode)
 | 
										w.WriteHeader(tc.inCode)
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
				if _, err := fmt.Fprint(w, tc.in); err != nil {
 | 
									if _, err := fmt.Fprint(w, tc.in); err != nil {
 | 
				
			||||||
					t.Errorf("error writing teams api response %v", err)
 | 
										t.Errorf("error writing teams api response %v", err)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue