forked from electricdusk/rushlink
		
	test: Look for StatusFound instead of StatusOk; NFC
This commit is contained in:
		
							parent
							
								
									016ffa8949
								
							
						
					
					
						commit
						737a26fee3
					
				@ -92,7 +92,7 @@ func TestIssue43(t *testing.T) {
 | 
			
		||||
	req.Header.Add("Content-Type", form.FormDataContentType())
 | 
			
		||||
	rr := httptest.NewRecorder()
 | 
			
		||||
	srv.ServeHTTP(rr, req)
 | 
			
		||||
	checkStatusCode(t, rr, http.StatusOK)
 | 
			
		||||
	checkStatusCode(t, rr, http.StatusFound)
 | 
			
		||||
	rawURL := strings.SplitN(rr.Body.String(), "\n", 2)[0]
 | 
			
		||||
	pasteURL, err := url.Parse(rawURL)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user