mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
Added test to check user-agent header
This commit is contained in:
@@ -32,6 +32,10 @@ func dummyServer(t *testing.T, expectedToken, expectedID string, expectedVersion
|
||||
t.Errorf("want %q, have %q", expectedVersion, have)
|
||||
}
|
||||
|
||||
if have := r.Header.Get("user-agent"); "Scope_Probe/"+expectedVersion!=have {
|
||||
t.Errorf("want %q, have %q","Scope_Probe/"+expectedVersion,have)
|
||||
}
|
||||
|
||||
var have report.Report
|
||||
|
||||
reader := r.Body
|
||||
|
||||
Reference in New Issue
Block a user