summaryrefslogtreecommitdiffstats
path: root/client/client_test.go
blob: 56a79c07f82157138b906be0cfcced905929107a (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 <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
	}
}