@@ -199,11 +199,11 @@ func TestRun_local(t *testing.T) {
199199 t .Run ("port-endpoint" , func (t * testing.T ) {
200200 endpoint , err := ollamaContainer .PortEndpoint (ctx , testNatPort , "" )
201201 require .NoError (t , err )
202- require .Regexp (t , regexp . MustCompile ( `^127.0.0.1:\d+$` ) , endpoint )
202+ require .Regexp (t , `^127.0.0.1:\d+$` , endpoint )
203203
204204 endpoint , err = ollamaContainer .PortEndpoint (ctx , testNatPort , "http" )
205205 require .NoError (t , err )
206- require .Regexp (t , regexp . MustCompile ( `^http://127.0.0.1:\d+$` ) , endpoint )
206+ require .Regexp (t , `^http://127.0.0.1:\d+$` , endpoint )
207207 })
208208
209209 t .Run ("session-id" , func (t * testing.T ) {
@@ -392,7 +392,7 @@ func testRun_localWithCustomHost(ctx context.Context, t *testing.T, ollamaContai
392392 t .Run ("inspect" , func (t * testing.T ) {
393393 inspect , err := ollamaContainer .Inspect (ctx )
394394 require .NoError (t , err )
395- require .Regexp (t , regexp . MustCompile ( `^local-ollama:\d+\.\d+\.\d+$` ) , inspect .Config .Image )
395+ require .Regexp (t , `^local-ollama:\d+\.\d+\.\d+$` , inspect .Config .Image )
396396
397397 _ , exists := inspect .Config .ExposedPorts [testNatPort ]
398398 require .True (t , exists )
0 commit comments