summaryrefslogtreecommitdiffstats
path: root/client/client_test.go
blob: ea2a7b5569be74e85b009f5c69a094812eaba7a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright © 2022 siddharth ravikumar <s@ricketyspace.net>
// SPDX-License-Identifier: ISC

package client

import (
	"io"
	"testing"
)

func TestGet(t *testing.T) {
	res, err := Get("https://plan.cat/~s")
	if err != nil {
		t.Errorf("get failed: %v", err)
		return
	}
	_, err = io.ReadAll(res.Body)
	if err != nil {
		t.Errorf("response read failed: %v", err)
		return
	}
}