@@ -66,7 +66,7 @@ func TestOrganizationByUserAndName(t *testing.T) {
66
66
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
67
67
defer cancel ()
68
68
69
- _ , err := client .OrganizationByName (ctx , codersdk .Me , "nothing" )
69
+ _ , err := client .OrganizationByUserAndName (ctx , codersdk .Me , "nothing" )
70
70
var apiErr * codersdk.Error
71
71
require .ErrorAs (t , err , & apiErr )
72
72
require .Equal (t , http .StatusNotFound , apiErr .StatusCode ())
@@ -85,7 +85,7 @@ func TestOrganizationByUserAndName(t *testing.T) {
85
85
Name : "another" ,
86
86
})
87
87
require .NoError (t , err )
88
- _ , err = other .OrganizationByName (ctx , codersdk .Me , org .Name )
88
+ _ , err = other .OrganizationByUserAndName (ctx , codersdk .Me , org .Name )
89
89
var apiErr * codersdk.Error
90
90
require .ErrorAs (t , err , & apiErr )
91
91
require .Equal (t , http .StatusNotFound , apiErr .StatusCode ())
@@ -101,7 +101,7 @@ func TestOrganizationByUserAndName(t *testing.T) {
101
101
102
102
org , err := client .Organization (ctx , user .OrganizationID )
103
103
require .NoError (t , err )
104
- _ , err = client .OrganizationByName (ctx , codersdk .Me , org .Name )
104
+ _ , err = client .OrganizationByUserAndName (ctx , codersdk .Me , org .Name )
105
105
require .NoError (t , err )
106
106
})
107
107
}
0 commit comments