mirror of
https://github.com/clearlinux/rkt.git
synced 2026-10-03 15:39:46 +00:00
Merge pull request #372 from kelseyhightower/remove-unused-template
fetch: remove unused HTML template from tests
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"testing"
|
||||
"text/template"
|
||||
|
||||
"github.com/coreos/rocket/cas"
|
||||
"github.com/coreos/rocket/pkg/keystore"
|
||||
@@ -100,16 +99,6 @@ func TestNewDiscoveryApp(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
var metaTemplate = template.Must(template.New("name").Parse(`<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="ac-discovery" content="{{.PrefixMatch}} {{.ACITemplateURL}}">
|
||||
<meta name="ac-discovery-pubkeys" content="{{.PrefixMatch}} {{.PubkeysURL}}">
|
||||
<head>
|
||||
<html>
|
||||
`))
|
||||
|
||||
func TestFetchImage(t *testing.T) {
|
||||
dir, err := ioutil.TempDir("", "fetch-image")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user