github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/libkb/httputil_test.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  package libkb
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/stretchr/testify/require"
    10  )
    11  
    12  func TestDiscardAndCloseBody(t *testing.T) {
    13  	err := DiscardAndCloseBody(nil)
    14  	require.Error(t, err)
    15  }