mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-03 12:48:38 -04:00
Begin move away from using http.ServeMux
This commit is contained in:
@ -28,13 +28,15 @@ func TestSecurityTemplates(t *testing.T) {
|
||||
}
|
||||
|
||||
num_usd := 0
|
||||
for _, s := range *sl.Securities {
|
||||
if s.Type != handlers.Currency {
|
||||
t.Fatalf("Requested Currency-only security templates, received a non-Currency template for %s", s.Name)
|
||||
}
|
||||
if sl.Securities != nil {
|
||||
for _, s := range *sl.Securities {
|
||||
if s.Type != handlers.Currency {
|
||||
t.Fatalf("Requested Currency-only security templates, received a non-Currency template for %s", s.Name)
|
||||
}
|
||||
|
||||
if s.Name == "USD" && s.AlternateId == "840" {
|
||||
num_usd++
|
||||
if s.Name == "USD" && s.AlternateId == "840" {
|
||||
num_usd++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,6 +66,10 @@ func TestSecurityTemplateLimit(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if sl.Securities == nil {
|
||||
t.Fatalf("Securities was unexpectedly nil\n")
|
||||
}
|
||||
|
||||
if len(*sl.Securities) > 5 {
|
||||
t.Fatalf("Requested only 5 securities, received %d\n", len(*sl.Securities))
|
||||
}
|
||||
|
Reference in New Issue
Block a user